package com.xmb.common.service;

import com.xmb.common.entity.XmbOrderRewardSetting;
import com.xmb.common.remote.entity.OrderRewardParam;

/**
 * Created by lyndon on 2019/4/10.
 * 分销配置信息
 */
public interface OrderRewardSettingService {

    /**
     * 保存分销配置信息
     * @param xmbOrderRewardSetting
     * @return
     */
    int saveXmbOrderRewardSetting(XmbOrderRewardSetting xmbOrderRewardSetting);

    /**
     * 修改分销配置信息
     * @param xmbOrderRewardSetting
     * @return
     */
    int updateXmbOrderRewardSetting(XmbOrderRewardSetting xmbOrderRewardSetting);


    /**
     * 获取分销配置信息
     * @param senceId 活动id
     * @param senceType 页面路径
     * @return
     */
    XmbOrderRewardSetting findXmbOrderRewardSetting(Long senceId, String senceType);

    /**
     * 增加分销奖励方法记录
     * @param orderRewardParam
     * @return
     */
    int saveOrderRewardRecord(OrderRewardParam orderRewardParam);

    /**
     * 下发分销奖励
     * @param orderRewardParam
     * @return
     */
    int sendOrderReward(OrderRewardParam orderRewardParam);

    int deleteXmbOrderRewardSetting(Long id);
}
